﻿<template>
  <div>
    <div v-for = "(element) in data.list" :key="element.config.uid">
      <div class="dynamic_single">
        <component :ref="element.config.uid" :key="element.config.uid" v-bind:is="element.componentName"
          :config="element.config"
          :events="element.events"
          :commonConfig="commonConfig"
          :isDesignMode="false"
          v-model="element.value"
          :pageModel.sync="pageModel"
          :pageControl.sync="pageControl"
          :otherModel.sync="otherModel"
          :parentControl.sync="parentControl"
          :parentModel="parentModel"
          @onRuntimeEvent="onRuntimeEvent"></component>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {
  },
  props: ['data', 'commonConfig', 'pageControl', 'pageModel', 'parentModel', 'otherModel', 'parentControl'],
  data () {
    return {
    }
  },
  mounted () {
  },
  methods: {
    onRuntimeEvent (event, data) {
    }
  },
  watch: {
  }
}
</script>
<style>
.content-add {
  width: 100%;
  text-align: center;
}
.widget-container {
  min-height: 550px;
  overflow-y: auto;
  overflow-x: hidden;
}
</style>
